export const useDimModel = (dimensionList) => {
	return {
		addModel() {
			dimensionList.value.push({
				title: '',
				attrVoList: [],
			});
		},
		delModel(index) {
			dimensionList.value.splice(index, 1);
		},
	};
};

export const useParams = (dimensionList) => {
	return {
		addParam(index) {
			dimensionList.value[index].attrVoList.push({});
		},
		toDel(index1, index2) {
			dimensionList.value[index1].attrVoList.splice(index2, 1);
		},
	};
};
